package com.theatre.userservice.exception;

/**
 * 自定义业务异常
 */
public class BusinessException extends RuntimeException {

    private int code; // 可选，存状态码

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(int code, String message) {
        super(message);
        this.code = code;
    }

    public int getCode() {
        return code;
    }
}
